]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
environment: Remove old compatibility code
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 5 Apr 2023 15:27:21 +0000 (17:27 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 25 Apr 2023 09:52:22 +0000 (09:52 +0000)
St.set_slow_down_factor() has been deprecated for over 3 years
(since 3.34). That's plenty of time for extensions to switch to
St.Settings.get().slow_down_factor.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2743>

js/ui/environment.js

index 224456d6a779e12cdc5bf4ec859d868df306ca3a..353cd35f631879b647b4c395559b2e38c9a61188 100644 (file)
@@ -398,12 +398,6 @@ function init() {
         return Shell.util_touch_file_finish(this, result);
     };
 
-    St.set_slow_down_factor = function (factor) {
-        let { stack } = new Error();
-        log(`St.set_slow_down_factor() is deprecated, use St.Settings.slow_down_factor\n${stack}`);
-        St.Settings.get().slow_down_factor = factor;
-    };
-
     let origToString = Object.prototype.toString;
     Object.prototype.toString = function () {
         let base = origToString.call(this);